//底部菜单
function Bmenu(a) {
    document.querySelector('body').innerHTML += `
 <footer>
 <ul id="footer">
   <li><a href="home.html" class="${a == 'home' ? "active" : ''}"><i class="iconfont icon-shouye1"></i><span>首页</span></a></li>
   <li><a href="run.html" class="${a == 'run' ? "active" : ''}"><i class="iconfont icon-shouye"></i><span>运动</span></a></li>
   <li><a href="circle.html" class="${a == 'circle' ? "active" : ''}"><i class="iconfont icon-quanzi"></i><span>圈子</span></a></li>
   <li><a href="my.html" class="${a == 'my' ? "active" : ''}"><i class="iconfont icon-wode"></i><span>我的</span></a></li>
 </ul>
</footer>
 `
}

//运动顶部菜单
function Tmenu(menu) {
  document.querySelector('header').innerHTML += `
  <ul class="Table container">
      <li class="${menu=='run'?'active':''}"><a href="run.html">跑步</a></li>
      <li class="${menu=='cycling'?'active':''}"><a href="cycling.html">骑行</a></li>
      <li class="${menu=='courseTrain'?'active':''}"><a href="courseTrain.html">课程训练</a></li>
  </ul>
  
  `
}



module.exports = {
    Bmenu,
    Tmenu
}